{% extends "app/base_manage.html" %}
{% load i18n %}

{% autoescape off %}
{% block html_head_ext %}

<link rel="stylesheet" type="text/css" 
      href="{{ base_site_url }}/dms_media/javascript/yui/build/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" 
      href="{{ base_site_url }}/dms_media/javascript/yui/build/tabview/assets/skins/sam/tabview.css" />
<script type="text/javascript" 
      src="{{ base_site_url }}/dms_media/javascript/yui/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" 
      src="{{ base_site_url }}/dms_media/javascript/yui/build/element/element-beta.js"></script>
<script type="text/javascript" 
      src="{{ base_site_url }}/dms_media/javascript/yui/build/tabview/tabview.js"></script>
<style>
.yui-content { background-color: #f4f4f4 !important; }
</style>

<script type="text/javascript">
function showHelp(url) {
  width = 500
  left  = screen.width - width;
  param = "top=0,menubar=yes,scrollbars=yes"
  winHelp = window.open(url,
            "_help",
            "width="+String(width)+",height=600,left="+String(left)+","+param);
  winHelp.focus();
}
</script>

<script type="text/javascript" src="{{ site.url }}/dms_media/javascript/calendar/calendar.js"></script>
<script type="text/javascript" src="{{ site.url }}/dms_media/javascript/overlib/overlib.js-small"></script>
<script type="text/javascript" src="{{ site.url }}/dms_media/javascript/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init ( {
  language : "de",
  convert_urls : false,
  relative_urls : false,
  mode : "exact",
  elements : "ta,ta1,ta2,ta3,ta4,ta5,ta6,ta7,ta8,ta9,ta10",
  theme : "advanced",
  theme_advanced_disable : "strikethrough,indent,outdent,styleselect,justifyfull",
  plugins : "table,preview,searchreplace,paste,media,fullscreen",
  theme_advanced_buttons1 : "bold,italic,underline,separator,undo,redo,separator,bullist,numlist,separator,hr,sub,sup,charmap,formatselect,separator,link,unlink,image,media,separator,fullscreen,separator,template,code,help",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator,tablecontrols,separator,cleanup",
  theme_advanced_buttons3 : "",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  extended_valid_elements : "span[class|align|style], br[clear]",
  theme_advanced_resize_horizontal : false,
  theme_advanced_resizing : true} );
</script>
{% endblock %}

{% block frame_left %}{% endblock %}

{% block title %}{{ title }}{% endblock %}
{% block sub_title %}
  {% if sub_title %}
    {{ sub_title }}{% if my_name %} <i>[{{ my_name }}]</i>{% endif %}
  {% endif %}
{% endblock %}

{% block content %}

{% if quota_exceeded %}
<p>
{% trans "Der für Sie bereitgestellte Speicherplatz ist voll ausgeschöpft!" %}
</p>
{% else %}

  {% if text_intro %}
    {{ text_intro }}
  {% endif %}
  
  {% if errors %}
    {% if show_errors %}
      {% blocktrans %}<p>
      <b><span class="red">Ihre Eingaben wurden <i>nicht</i> gespeichert, da Sie
      nicht fehlerfrei sind.</span></b>
      Bitte korrigieren Sie die Fehler und versuchen Sie es anschließend noch einmal.
      </p>
      {% endblocktrans %}
    {% endif %}
  {% endif %}
  
  <form method="post"
        name  ="form_input"
        action="{{ next }}"
        enctype  = "multipart/form-data">
  {{ content }}
  
  <p align="right" style="margin-top:0.5em;">
  <input name="path" type="hidden" value="{{ path }}" />
  <input name="submit" type="submit" value="{{ submit }} ..." />
  </p>
  </form>
  
  <script>
  var editTab = new YAHOO.widget.TabView('editForm');
  </script>
{% endif %}
{% endblock %}
{% endautoescape %}
